/* 历史页面专用样式 */
.history-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    padding: 20px;
}

/* 时间线样式 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, #0d3221, #CCFF66);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

.timeline-date {
    position: absolute;
    left: -100px;
    top: 0;
    background-color: #0d3221;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.timeline-content {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-content h4 {
    color: #CCFF66;
    margin-bottom: 15px;
    font-size: 18px;
}

.timeline-content p {
    color: #f0f0f0;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* 历史图片画廊 */
.history-gallery {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.history-gallery figure {
    flex: 1;
    min-width: 200px;
}

.history-gallery img {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* 时期详情样式 */
.period-detail h5 {
    color: #fff;
    margin: 15px 0 10px;
    font-size: 16px;
    padding-left: 10px;
    border-left: 3px solid #CCFF66;
}

/* 侧边栏样式 */
.historical-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.historical-figures, .historical-resources {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.historical-sidebar h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #CCFF66;
}

.historical-figures ul {
    list-style: none;
}

.historical-figures li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.historical-figures li:last-child {
    border-bottom: none;
}

.figure-link {
    color: #CCFF66;
    text-decoration: none;
    transition: all 0.3s ease;
}

.figure-link:hover {
    text-decoration: underline;
    margin-left: 5px;
    display: inline-block;
}

.historical-resources p {
    color: #f0f0f0;
    margin-top: 15px;
    line-height: 1.6;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .history-container {
        grid-template-columns: 1fr;
    }
    
    .timeline-date {
        position: relative;
        left: 0;
        display: inline-block;
        margin-bottom: 10px;
    }
    
    .historical-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-content {
        padding: 15px;
    }
}

/* 复合选择器应用 */
.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.timeline-content p::first-letter {
    font-size: 1.5em;
    color: #CCFF66;
    font-weight: bold;
}

/* 伪元素应用 */
.historical-figures::before {
    content: "\f007";
    font-family: "FontAwesome";
    font-size: 24px;
    color: #CCFF66;
    display: block;
    text-align: center;
    margin-bottom: 15px;
}
